﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WxTenpay.Core.Model
{


    /// <summary>
    /// 工单管理
    /// </summary>
    public class Sys_WorkOrderEntity
    {

        public int Id { set; get; }
        public string GuId { set; get; } = "";
        /// <summary>
        ///工单名称
        /// </summary>
        public string Name { set; get; } = "";

        /// <summary>
        /// 类型 0：系统异常  1：建议  2：其他
        /// </summary>
        public int Type { set; get; } = 0;
        /// <summary>
        /// 情况描述
        /// </summary>
        public string Content { set; get; } = "";

        /// <summary>
        /// 问题处理
        /// </summary>
        public string MGContent { set; get; } = "";
        /// <summary>
        /// 用户id
        /// </summary>
        public string SysUserGuId { set; get; } = "";

        /// <summary>
        /// 状态  0：待处理 1：已完结 
        /// </summary>
        public int Status { set; get; } = 0;

        /// <summary>
        /// 处理管理员Id
        /// </summary>
        public string SysDealWithGuId { set; get; } = "";


        /// <summary>
        /// 完结时间
        /// </summary>
        public string EndTime { set; get; } = "";
        /// <summary>
        /// 添加时间
        /// </summary>
        public string CreateTime { set; get; } = "";

        public void Create()
        {
            if (string.IsNullOrWhiteSpace(this.GuId))
                this.GuId = Guid.NewGuid().ToString();
            if (string.IsNullOrWhiteSpace(this.CreateTime))
                this.CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }

    }
}
